package com.java.miaosha.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java.miaosha.dao.GoodsDao;
import com.java.miaosha.entity.GoodsEntity;
import com.java.miaosha.service.GoodsService;
import com.java.miaosha.vo.GoodsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("goodsService")
public class GoodsServiceImpl extends ServiceImpl<GoodsDao, GoodsEntity> implements GoodsService {
	@Autowired
	private GoodsDao goodsDao;


	@Override
	public List<GoodsVO> goodsVOList() {
		return goodsDao.goodsVOList();
	}

	@Override
	public GoodsVO getGoodsVOById(Long goodsId) {
		return goodsDao.goodsVO(goodsId);
	}
}